<?php

declare(strict_types=1);
namespace App\Model\CommodityModel;

use App\Model\BaseModel\BaseCommodityModel;
class CommodityChannelBestGoods extends BaseCommodityModel
{
    public $table = 'commodity_channel';
    
    /**
     * 渠道商户ID
     * @param int $bid
     */
    public function getTableByBuID($bid = 0 )
    {
        $this->table = $bid > 0 ? 'commodity_channel' : 'commodity_shop';
        return $this;
    }
}